import type { OperationLogApi } from '#/api/types/modules/operationLog';

import { Http as http } from '#/api/http';

/**
 * 获取操作日志列表
 */
export async function getOperationLogListApi(
  params: OperationLogApi.OperationLogQuery,
) {
  return http.get<OperationLogApi.OperationLogVO[]>(
    '/system/operation_log/list',
    params,
  );
}

/**
 * 获取操作类型列表
 */
export async function getOperationTypeListApi() {
  return http.get<Map<number, string>>('/system/operation_log/operation_type');
}
